package com.book.ordermanagement.invoke;

import com.book.ordermanagement.command.OrderCommandInterface;
import com.book.pojo.Order;
import org.springframework.stereotype.Component;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: 订单调用者
 * @date 2023/12/21 21:41
 */
@Component
public class OrderCommandInvoke {
    public void invoke(OrderCommandInterface commandInterface, Order order){
        commandInterface.execute(order);
    }
}
